import java.util.Scanner;
class Test3_Switch{
    public static void main (String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个月份：");
        int month = sc.nextInt();
      /* 一年有四季 
        3,4,5 春季
        6,7,8 夏季
        9,10,11 秋季
        12，1,2 冬季
    # 键盘录入月份，输出对应的季节 */

    /*// 用switch 语句实现
    switch (month){
        case 3:
        case 4:
        case 5:
           System.out.println(month + "是春季");
        break;
        case 6:
        case 7:
        case 8:
           System.out.println(month + "是夏季");
        break;
        case 9:
        case 10:
        case 11:
           System.out.println(month + "是秋季");
        break;
        case 12:
        case 1:
        case 2:
           System.out.println(month + "是冬季");
        break;
        default :
           System.out.println("没有对应的分月和季节");
    }*/
     
     //#用if语句来实现
     if (month > 12 || month < 1){
         System.out.println("对不起没有对应的季节");
     }else if (month >=3 && month <= 5){
         System.out.println(month + "月是春季");
     }else if (month >=6 && month <= 8){
         System.out.println(month + "月是夏季");
     }else if (month >=9 && month <= 11){
         System.out.println(month + "月是秋季");
     }else {
         System.out.println(month + "月是冬季");
     }
    }
    
}